<?php $this->_extends('_layouts/bocib_layout'); ?>

<?php $this->_block('content');?>
<div id="content">
    <h2> 添加教师 </h2>
    <form action="<?=url('bofaculty/addteacher');?>" method="post" enctype="multipart/form-data">
        <div>
            <label>姓名&nbsp;</label>
            <input type="text" name="tname" value=""  /><br />
            <label>系别&nbsp;</label>
            <select name="tmajor_id">
                <?php foreach(Major::find()->all()->query() as $major) { ?>
                <option value="<?=$major->major_id;?>"><?=$major->major;?></option>
                <?php } ?>
            </select>
            <br />

            <label>头衔&nbsp;</label>
            <?php foreach(Title::find()->all()->query() as $title) { ?>
            <input type="checkbox" name="ttitle[]" value="<?=$title->title_id;?>" />
            <label><?=$title->title;?></label>
            <?php } ?>
            <br />
            
            <label>头像<span class="stips pdl20">建议尺寸：210 * 286</span></label>
            <input type="file" name="tprofile" /><br />

            <label>Email</label>
            <input type="text" name="temail" value="" /><br />
            <label>Phone</label>
            <input type="text" name="tphone" value="" /><br />
            <label>fax&nbsp;&nbsp;</label>
            <input type="text" name="tfax" value="" /><br />
            <label>设置课件密码</label>
            <input type="text" name="taccesscode" value="" /><br />
            <label>显示研究成果信息：</label>
            <input type="checkbox" name="tshowresearch" value="1" /><br />
            <label>简介:</label><br />
            
            <?php $this->_control('fckeditor', 'tdescription' , array('base_dir' => '/misc/fckeditor', 'instanceName'=>'tdescription')); ?>

            <input type="submit" value="添加老师" /><br />
        </div>
    </form>
</div>

<?php $this->_endblock('content');?>